package plugin

import (
	"bufio"
	"gitee.com/injoyai/goutil/oss/io/buf"
)

type Frame struct {
	buf *bufio.Reader
	*buf.Frame
}

func (this *Frame) ReadMessage() ([]byte, error) {
	return this.Frame.ReadMessage(this.buf)
}

func NewFrame(buf *bufio.Reader, f *buf.Frame) *Frame {
	return &Frame{buf: buf, Frame: f}
}
